<?php decorate_with(false) ?>
<?php use_javascript('space_gh') ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看留言 - 会员中心 - 世界名模大赛 - 官方网站</title>
<meta name="description" content="<?php include_slot('description') or print '2010 世界名模大赛-QQ炫舞天使评选-官方网站' ?> " />
<meta name="keywords" content="<?php include_slot('keywords') or print '2010,世界名模大赛,QQ炫舞天使评选,世界模特大赛,世界名模大赛官方网站'?> " />
<meta name="robots" content="index, follow" />
<?php include_stylesheets() ?>
<?php include_javascripts() ?>
</head>
<body>

<!--Head-->
<div class="head_main">
   <div class="head_main2">
     <h1><a href="<?php echo url_for('@homepage') ?>" target="_self"  class="head_main2_a">世界名模大赛</a></h1>
     <div class="head_dl">
        <?php if ($sf_user->isAuthenticated()): ?>
          <a href="<?php echo url_for('@application_edit?id=' . $sf_user->getAttribute('id')) ?>">选手中心</a>
          |
          <a href="<?php echo url_for('@session_destroy?id=' . $sf_user->getAttribute('id')) ?>">退出</a>
        <?php else: ?>
          <a href="<?php echo url_for('@session_new?noarea=ooo') ?>">登录选手中心</a>
        <?php endif ?>
     </div>   
   </div>
</div>
<div class="menu">
    <ul>
      <li>选择赛区：</li>
      <?php foreach ($areas as $area): ?>
      <li>
        <a href="<?php echo url_for('@area?area=' . $area->getSlug()) ?>" target="_self"><?php echo $area ?></a>
      </li>
      <?php endforeach ?>
    </ul>
    <div class="clears"></div>
</div>
<!--Content-->
<div class="ms_main">
   <div class="ms_left">
      <p class="ms_leftp1"><a href="<?php echo url_for('@application_edit?id=' . $sf_user->getAttribute('id')) ?>"><span>修改资料</span> Modify data</a></p>
      <p class="ms_leftp1"><a href="<?php echo url_for('@picture') ?>"><span>我的照片</span> My pictures</a></p>
      <p class="ms_leftp2"><span>查看留言</span> Message</p>
   </div>
   
   <div class="ms_right">
     <div class="ms_right_title">
         <p class="ft20">查看留言</p>
       <p class="ft21">注：若需删除留言请联系客服人员。</p>
      </div>
<table width="610" cellspacing="0" class="sp_right_ly1" id="table">
                <?php $n = count($messages); for ($i = 0; $i < $n; $i++): ?>
				<tr<?php ($i + 1) % 2 and print ' class="odd"' ?>>
                  <td>
                    <em><?php echo $messages[$i]->getCreatedAt() ?></em>
                    <span><?php echo $messages[$i]->getName() ?>:</span>
                    <p><?php echo $messages[$i]->getMessage() ?></p>
                  </td>
                </tr>
				<?php endfor ?>
            </table>
      <div class="ms_pages">
         共有<?php echo count($messages) ?>条留言
         <div class="ms_pagesize">

         </div>
      </div>
   </div>
   
  <div class="clears"></div>
</div>
<div class="foot">
   <div class="foot_top"></div>
   <div class="foot_bottom">
      <p>
         <a href="/html/about_us.html">大赛简介</a><span>|</span>
         <a href="/html/sponsor.html">招商合作</a><span>|</span>
         <a href="/html/copyright.html">法律声明</a><span>|</span>
         <a href="/html/links.html">友情链接</a><span>|</span>
         <a href="/html/helpcenter.html">帮助中心</a><span>|</span>
         <a href="/html/Contact_us.html">联系我们</a>
      </p>
      <p>Copyright &copy; 2010 世界名模大赛组委会 版权所有</p>
      <p>
        <a href="http://www.miibeian.gov.cn/" target="_blank">京ICP备10212324号</a>
        <!--a href="">技术支持：奇谷科技</a-->
      </p>
   </div>
</div>

<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-16216214-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>

</body>
</html>